/**
 * Copyright 2011 Sibaozuan(superskysbz@gmail.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package summary.aidl.server;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author Sibaozuan(superskysbz@gmail.com)
 * 
 */
public class Book implements Parcelable {
	private String bookName;
	private int bookPrice;

	public Book() {

	}
/**
 * 
 * @return
 */
	public String getBookName() {
		return bookName;
	}
/**
 * 
 * @param bookName
 */
	public void setBookName(String bookName) {
		this.bookName = bookName;
	}
/**
 * 
 * @return
 */
	public int getBookPrice() {
		return bookPrice;
	}
/**
 * 
 * @param bookPrice
 */
	public void setBookPrice(int bookPrice) {
		this.bookPrice = bookPrice;
	}
/**
 * 
 * @param parcel
 */
	public Book(Parcel parcel) {
		bookName = parcel.readString();
		bookPrice = parcel.readInt();
	}

	/**
	 * 
	 * 
	 * @see android.os.Parcelable#describeContents()
	 */
	@Override
	public int describeContents() {
		return 0;
	}

	/**
	 * 
	 * 
	 * @see android.os.Parcelable#writeToParcel(android.os.Parcel, int)
	 */
	@Override
	public void writeToParcel(Parcel dest, int flags) {

	}
/**
 * 
 */
	public static final Parcelable.Creator<Book> CREATOR = new Creator<Book>() {
		public Book createFromParcel(Parcel source) {

			return new Book(source);
		}

		public Book[] newArray(int size) {
			return new Book[size];
		}
	};
}
